package cn.edu.tju.core.security.rest.dto;

import jakarta.validation.constraints.Size;

/**
 * DTO for user information update.
 */
public class UserUpdateDto {

   @Size(min = 1, max = 50)
   private String username;

   private Integer userSex;

   private String userImg;

   public String getUsername() {
      return username;
   }

   public void setUsername(String username) {
      this.username = username;
   }

   public Integer getUserSex() {
      return userSex;
   }

   public void setUserSex(Integer userSex) {
      this.userSex = userSex;
   }

   public String getUserImg() {
      return userImg;
   }

   public void setUserImg(String userImg) {
      this.userImg = userImg;
   }

   @Override
   public String toString() {
      return "UserUpdateDto{" +
         "username='" + username + '\'' +
         ", userSex=" + userSex +
         '}';
   }
}
